<div class="maintop">
    当前位置：发送站内信
    <a href="javascript:;" action="<?=$basepath?>" class="mainFrame button">返回</a>
    <a href="javascript:;" action="<?=$basepath?>_add" class="mainFrame button">刷新</a>
</div>
<div class="main-search">
</div>
<div id="mainbody">
    <div class="main">
        <div class="info">
            <form name="add_save" action="<?=$basepath?>_add_save" method="POST" target="ajax" func="form_submit">
                <dl><dt>标题</dt><dd><input type="text" name="title" class="wtxt" placeholder="短信的主题" /></dd></dl>
                <dl>
                    <dt>收件人</dt>
                    <dd><label><input name="touser" value="touid" type="radio"  checked="checked" />指定UID</label> <label><input name="touser" value="all" type="radio">群发所有</label><br>
                        <input name="users" id="users" value="" class="hide"></dd>
                </dl>
                <dl>
                    <dt>指定收件人ID</dt>
                    <dd><input name="touserid" id="touserid" value="<?=$touid?>" class="wtxt" placeholder="玩家的UID，多个玩家请用英文的＂,＂分开"></dd>
                </dl>
                <dl><dt>会员等级</dt><dd><select type="text" name="vip" id="vip">
                            <option value="0" select="selected">请选择</option>
                            <?php
                            if($vips){
                                foreach($vips as $k=>$v){
                                    echo '<option value="',$k,'">',$v,'</option>';
                                }
                            }
                            ?>
                        </select></dd></dl>
                <dl><dt>代理等级</dt><dd><select type="text" name="agent" id="agent">
                            <option value="0" select="selected">请选择</option>
                            <?php
                            if($agent){
                                foreach($agent as $k=>$v){
                                    echo '<option value="',$k,'">',$v,'</option>';
                                }
                            }
                            ?>
                        </select></dd></dl>
                <dl><dt>短信内容</dt><dd><textarea name="content" class="wtxt" placeholder="短信的内容写在这里，最多660个字" style="width:100%;min-height:120px"></textarea></dd></dl>
                <dl><dt>日期时间</dt><dd><input type="text" name="actiontime" class="int" value="<?=date('Y-m-d H:i:s', time()) ?>" /></dd><dd class="t">格式：<?=date('Y-m-d H:i:s', time()) ?></dd></dl>
                <div class="btndiv">
                        <input type="submit" value="确认" class="btnbig" />
                        <a href="javascript:;" action="<?=$basepath?>" class="mainFrame btnbig">返回</a>
                    </div>
            </form>
        </div>
    </div>
</div>
